using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmTrainingCourseTrainee")]
    public class TrainingCourseTrainee
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "TraineeId", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public int TraineeId { get; set; }

		[ForeignKey("Train")]
		[DataMember, Display(Name = "TrainId", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<int> TrainId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<int> EmpId { get; set; }

		[DataMember, Display(Name = "Score", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<decimal> Score { get; set; }

		[DataMember, Display(Name = "ScoredBy", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string ScoredBy { get; set; }

		[DataMember, Display(Name = "ScoredWhen", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<System.DateTime> ScoredWhen { get; set; }

		[DataMember, Display(Name = "ResultMemo", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string ResultMemo { get; set; }

		[DataMember, Display(Name = "Granted", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<decimal> Granted { get; set; }

		[DataMember, Display(Name = "TrainHour", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<decimal> TrainHour { get; set; }

		[DataMember, Display(Name = "TraineeText", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string TraineeText { get; set; }

		[DataMember, Display(Name = "OrgText", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string OrgText { get; set; }

		[ForeignKey("JobSite")]
		[DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<int> JobSiteId { get; set; }

		[DataMember, Display(Name = "WorkingText", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string WorkingText { get; set; }

		[DataMember, Display(Name = "PositionText", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string PositionText { get; set; }

		[DataMember, Display(Name = "ClassText", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string ClassText { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public string UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.TrainingCoursesTraineesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual HRM.TrainingRequest Train { get; set; }

        public virtual HRM.Employee Emp { get; set; }

		public virtual HRM.JobSite JobSite { get; set; }

    }
}